package org.csmzxy.class2334;

public class task1 {
    public static void main(String[] args){
        int[] arr;
        int[] arr2 = new int[4];
        int[] arr3 = { 2, 4, 6, 8 ,10 };
        for (int i=0; i<arr3.length; i++) {
            System.out.println(arr3[i]);
        }
        int sum = 0;
        for( int i=0;i<arr3.length;i++){
            sum += arr3[i];
        }
        System.out.println(sum);
        int max = arr3[0];
        for( int i=0;i<arr3.length;i++){
            if(arr3[i] >max){
                max =arr3[i];
            }
        }
        System.out.println(max);
    }
}
